package gui;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.io.IOException;

import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class MainWindow extends JFrame {
	
	public MainWindow() throws IOException {
		Container content = getContentPane();
		JPanel mainPanel = new JPanel();
		setTitle("Herkul");
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
		setLocation(30, 30);
		JPanel buttonPane = new JPanel();
		JPanel canvas = new JPanel();
		canvas.setPreferredSize(new Dimension(1000, 0));
		canvas.setBorder(BorderFactory.createLineBorder (Color.blue, 2));
		canvas.setBackground(Color.white);
		
		
		JButton newAPbutton = new JButton("new AP");
		JButton nodeButton = new JButton("node");
		buttonPane.add(newAPbutton);
		buttonPane.add(nodeButton);
		content.add(buttonPane, BorderLayout.EAST);
		content.add(canvas, BorderLayout.WEST);
		
//		this.add(buttonPane);
//		this.add(canvas);
		setSize(screenSize.width - 100, screenSize.height - 100);
//		addTab(new TabExperiments());

		setVisible(true);
	}
	
	

}
